package br.com.canvasForAll.model.enums;

import java.util.ArrayList;
import java.util.Collection;

public enum CorEnum {
	
	YELLOW	(1L, "YELLOW"),
	RED		(2L, "RED"), 
	GREEN	(3L, "GREEN"), 
	BLUE	(4L, "BLUE");
	
	private Long id;
	
	private String rgbCor;
	
	private CorEnum(Long id, String rgbCor){
		this.id = id;
		this.rgbCor = rgbCor;
	}
	
	public Collection<String> getCores(){
		Collection<String> cores = new ArrayList<>();
		for(CorEnum c : CorEnum.values())
			cores.add(c.getRgbCor());
		
		return cores;
	}

	public Long getId() {
		return id;
	}

	public String getRgbCor() {
		return rgbCor;
	}
}
